//---------------------------------------------------------------------
// <copyright file="CsdlFunction.cs" company="Microsoft">
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//---------------------------------------------------------------------

using System.Collections.Generic;

namespace Microsoft.Data.Edm.Csdl.Internal.Parsing.Ast
{
    /// <summary>
    /// Represents a CSDL function.
    /// </summary>
    internal class CsdlFunction : CsdlFunctionBase
    {
        private readonly string definingExpression;

        public CsdlFunction(string name, IEnumerable<CsdlFunctionParameter> parameters, string definingExpression, CsdlTypeReference returnType, CsdlDocumentation documentation, CsdlLocation location)
            : base(name, parameters, returnType, documentation, location)
        {
            this.definingExpression = definingExpression;
        }

        public string DefiningExpression
        {
            get { return this.definingExpression; }
        }
    }
}
